#ifndef POSIX_SEMAPHORE_H
#define POSIX_SEMAPHORE_H

#include <string>
#include <semaphore.h>

class POSIX_Semaphore
{
  public:
    POSIX_Semaphore(const std::string & name);
    virtual ~POSIX_Semaphore();
    void Lock();
    void Unlock();
  private:
    sem_t* sem;
};

#endif
